package book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-07-13
 * Time: 14:10
 */
public class BookList {
    private Book[] books = new Book[10];
    private int usedSized;

    public  BookList(){
        books[0] = new Book("三国演义","罗贯中",14,"小说");
        books[1] = new Book("西游记","吴承恩",65,"小说");
        books[2] = new Book("红楼梦","曹雪芹",25,"小说");
        usedSized = 3;
    }

    public Book getBook(int pos){
        return this.books[pos];
    }

    public int getUsedSized() {
        return usedSized;
    }

    public void setUsedSized(int usedSized) {
        this.usedSized = usedSized;
    }

   public Book[] getBooks(){
        return books;
   }
   public void setBooks(int pos,Book book){
        this.books[pos] = book;
   }
}
